//
//  SEGVisitorAccessManager.h
//  ExcellentHome
//
//  Created by 揭婧雯 on 2017/5/11.
//  Copyright © 2017年 陈区. All rights reserved.
//

#import <Foundation/Foundation.h>

@class SEGVisitorAccessCodeModel;
@class SEGVisitorAccessHistoryModel;

@interface SEGVisitorAccessManager : NSObject

+ (instancetype)shareManager;

/**
 * 请求通行次数
 * @author Wendy
 * @param finished 回调结果
 */
- (void)requestAccessNumber:(SEGNetworkReponse)finished;

/**
 * 请求访客登记接口
 * @author Wendy
 * @param dict 信息字典
 * @param finished 回调结果
 */
- (void)requestSaveVisitCustomListWithDict:(NSDictionary *)dict finished:(SEGNetworkReponse)finished;

/**
 * 请求访客来访历史记录接口
 * @author Wendy
 * @param pageNo 页码
 * @param pageLength 每页数据条数
 * @param finished 回调结果
 */
- (void)requestVisitHistoryListWithPageNo:(NSUInteger)pageNo pageLength:(NSUInteger)pageLength finished:(SEGNetworkReponse)finished;

/**
 * 请求分享通行证接口
 * @author Wendy
 * @param finished 回调结果
 */
- (void)requestShareVisitorPassportWithVistLogid:(NSString *)vistLogid finished:(SEGNetworkReponse)finished;

/**
 生成的二维码通行证信息
 */
@property (nonatomic, strong)SEGVisitorAccessCodeModel *codeModel;

/**
 访客历史记录信息
 */
@property (nonatomic, strong)NSMutableArray<SEGVisitorAccessHistoryModel *> *historyArray;

/**
 历史记录总页数
 */
@property (nonatomic, assign) NSUInteger totalPage;
/**
 历史记录当前页数
 */
@property (nonatomic, assign) NSUInteger pageNo;
/**
 历史记录分页每页个数
 */
@property (nonatomic, assign) NSUInteger pageLength;
@end
